package com.itcast.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface AccountMapper {

    @Update("update account set money = money+#{money} where NAME = #{name}")
    void inCount(@Param("money") Double money,@Param("name") String name);

    @Update("update account set money = money-#{money} where NAME = #{name}")
    void outCount(@Param("money") Double money,@Param("name") String name);

}
